// 构建导航条的状态模块
const NavModule = {
    namespace: true, // 开启模块命名空间
    state: {
        title: '外卖'
    },
    mutations: {
        changeTitle(state, title) {
            state.title = title;
        }
    }
}

// 构建状态条的全局转态模块
const TabModule = {
    nameSpace: true,
    state: {
        tabIndex: 0
    },
    mutations: {
        changeTabIndex(state,index){
          state.tabIndex = index;
        }
    }
}

export default { nav:NavModule,tab:TabModule };